html, body {
	margin: 0;
	padding: 0;
	background: #fff;
}

html {
	font-family: "roboto_condensedbold", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

body {
	color: #333;
	font-size: 0.625em;
	font-variant-ligatures: none;
	font-kerning: none;
	hyphens: none;
	padding-bottom: 1em;
}

body, input, textarea, button {
	font-family: Consolas, "Lucida Console", "San Francisco Mono", Menlo, Monaco, "Andale Mono", "DejaVu Sans Mono", monospace;
}

input::-ms-clear {
	display: none;
}

form {
	margin: 0;
	padding: 0;
}

ul, ol, li {
	display: block;
	margin: 0;
	padding: 0;
}

a {
	display: block;
	padding: 0.5em;
	color: #000;
	text-decoration: none;
	outline: 0;
}

a:hover {
	background: #f5f5f5;
}

a:focus {
	background: #fffae0;
}

a:hover:focus {
	background: #faf7ea;
}

input, button {
	min-width: 0;
	margin: 0;
	padding: 0.25em 0;
}

input[type=button],
input[type=submit],
input[type=reset],
button {
	cursor: pointer;
}

em {
	font-style: normal;
	font-weight: normal;
	padding: 0 0.2em;
	border: 1px #ddd solid;
	border-radius: 3px;
}

.none, :root body .none {
	display: none;
}

.hidden {
	visibility: hidden;
}

.if-disabled {
	display: none;
}

:disabled .if-disabled {
	display: inherit;
}

:disabled .if-enabled {
	display: none;
}


.path-list {
	font-size: 1.5em;
	overflow: hidden;
	border-bottom: 1px #999 solid;
	zoom: 1;
}

.path-list li {
	position: relative;
	float: left;
	text-align: center;
	white-space: nowrap;
}

.path-list a {
	display: block;
	padding-right: 1.2em;
	min-width: 1em;
	white-space: pre-wrap;
}

.path-list a:after {
	content: '';
	position: absolute;
	top: 50%;
	right: 0.5em;
	width: 0.4em;
	height: 0.4em;
	border: 1px solid;
	border-color: #ccc #ccc transparent transparent;
	-webkit-transform: rotate(45deg) translateY(-50%);
	transform: rotate(45deg) translateY(-50%);
}

.path-list li:last-child a {
	padding-right: 0.5em;
}

.path-list li:last-child a:after {
	display: none;
}

.tab {
	display: flex;
	white-space: nowrap;
	margin: 1em 1em -1em 1em;
}

.tab label {
	flex: 0 0 auto;
	margin-right: 0.5em;
	padding: 1em;
	cursor: pointer;
}

.tab label:focus {
	outline: 0;
	text-decoration: underline;
	text-decoration-style: dotted;
}

.tab label:hover {
	background: #fbfbfb;
}

.tab label.active {
	color: #000;
	background: #f7f7f7;
}

.tab label:last-child {
	margin-right: 0;
}

.panel {
	margin: 1em;
	padding: 1em;
	background: #f7f7f7;
}

.upload {
	position: relative;
}

.upload::before {
	display: none;
	content: '';
	position: absolute;
	z-index: 1;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	opacity: 0.7;
	background: #c9c;
}

.upload.dragging::before {
	display: block;
}

.upload.uploading.dragging::before {
	background: transparent;
}

.upload input,
.upload button {
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.upload button {
	position: relative;
	margin-top: 0.5em;
	overflow: hidden;
}

.upload button span {
	position: relative;
}

.upload button .progress {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 0;
	opacity: 0.5;
	background: #c9c;
}

.archive a:hover {
	border-color: #ddd;
}

.archive a:before {
	content: '';
	position: absolute;
	left: 1.1em;
	top: 1em;
	height: 1em;
	width: 3px;
	background: #aaa;
}

.mkdir form {
	display: flex;
}

.mkdir .name {
	flex: 1 1 auto;
}

.mkdir .submit {
	padding-left: 0.5em;
	padding-right: 0.5em;
}

.filter {
	display: none;
}

:root .filter {
	display: block;
}

.filter .form {
	position: relative;
	display: flex;
}

.filter input {
	flex: 1 1 auto;
	width: 100%;
	padding-right: 1.5em;
	box-sizing: border-box;
}

.filter button {
	display: none;
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	border: 0;
	background: none;
	padding: 0 0.5em;
}

.actions {
	position: sticky;
	z-index: 2;
	top: 0;
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	background: #fff;
}

.actions > * {
	display: flex;
}

.actions button {
	padding: 0.4em 1em;
}

.actions .need-select {
	visibility: hidden;
}

.actions .action-list button + button {
	margin-left: 1em;
}

.actions .cancel-select {
	display: none;
}

.selecting .actions .need-select {
	visibility: visible;
}

.selecting .actions .start-select {
	display: none;
}

.selecting .actions .cancel-select {
	display: inline-block;
}

.item-list {
	margin: 1em;
}

.item-list li {
	position: relative;
	zoom: 1;
}

.item-list li:hover {
	background: #f5f5f5;
}

.item-list .detail,
.item-list .delete {
	display: flex;
	flex-flow: row nowrap;
	align-items: center;
	border-bottom: 1px #f5f5f5 solid;
	overflow: hidden;
	zoom: 1;
}

/* icon */
.item-list .detail {
	padding-left: 3em;
	position: relative;
}

.selecting .item-list .icon {
	display: none;
}

.item-list .icon,
.item-list .icon::before {
	display:flex;
	content: '';
	position: absolute;
	border: 1px #999 solid;
}

/* icon - file */
.item-list .file .icon {
	left: 0.6em;
	width: 1.2em;
	height: 1.2em;
	border-top-right-radius: 0.4em;
	background: #fff;
	background-image: linear-gradient(to bottom, #fff, #f1f1f1);
}

.item-list .file .icon::before {
	left: 0.2em;
	width: 0.8em;
	height: 0.3em;
	border-width: 2px 0;
	border-style: dotted;
	margin-top: 0.2em;
	transform: skew(20deg);
}

/* icon - dir */
.item-list .dir .icon,
.item-list .dir .icon::before {
	background: #fec;
	background-image: linear-gradient(to bottom, #ffd, #fec);
}

.item-list .dir .icon {
	left: 0.6em;
	width: 1em;
	height: 1em;
}

.item-list .dir .icon::before {
	width: 1em;
	left: 0;
	bottom: 0;
	margin: 0 0 -1px -1px;
	height: 0.6em;
	transform: skewX(-30deg);
	transform-origin: left bottom;
}

/* icon - parent */
.item-list .parent .icon {
	left: 0.9em;
	width: 0.9em;
	height: 1.2em;
	background: none;
	border-width: 0 0 1px 1px;
	border-bottom-left-radius: 0.3em;
}

.item-list .parent .icon::before {
	left: -0.35em;
	top: -1px;
	width: 0;
	height: 0;
	border-width: 0 0.3em 0.6em;
	border-left-color: transparent;
	border-right-color: transparent;
	background: none;
	transform: none;
}

.item-list .field {
	margin: 0 0 0 1em;
	flex-shrink: 0;
}

.item-list .name {
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	margin-left: 0;
	font-size: 1.5em;
	white-space: pre-wrap;
	word-break: break-all;
}

.item-list .size {
	white-space: nowrap;
	text-align: right;
	color: #666;
}

.item-list .time {
	color: #999;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
}

.item-list .select {
	display: none;
	position: absolute;
	z-index: 1;
	top: 0;
	left: 0;
	bottom: 0;
	width: 2.5em;
	align-items: center;
	justify-content: center;
}

.item-list .select:hover {
	background: #cfc;
}

.selecting .item-list .select {
	display: flex;
}

.item-list .delete {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	border: 0;
	color: #800000;
	background: none;
	font-weight: bold;
	font-size: 1.6em;
	line-height: 1em;
	padding: 0.1875em 0.3125em 0.3125em;
}

.item-list .delete:hover {
	background: #fee;
}

.item-list .header:hover {
	background: none;
}

.item-list .header .detail {
	background: #fcfcfc;
}

.item-list .header .field {
	display: inline-block;
	margin: 0;
	font-size: 1.5em;
	color: #808080;
	overflow: hidden;
}

.item-list .header .time {
	width: 6.5em;
	text-align: center;
}

.error {
	margin: 1em;
	padding: 1em;
	background: #ffc;
}

@media (prefers-color-scheme: dark) {
	html, body {
		background: #111;
	}

	body {
		color: #ccc;
	}

	a {
		color: #ddd;
	}

	a:hover {
		background-color: #333;
	}

	a:focus {
		background-color: #330;
	}

	a:hover:focus {
		background-color: #33331a;
	}

	em {
		border-color: #555;
	}

	.path-list {
		border-bottom-color: #999;
	}

	.path-list a:after {
		border-color: #555 #555 transparent transparent;
	}

	.tab label:hover {
		background-color: #181818;
	}

	.tab label.active {
		color: #fff;
		background-color: #222;
	}

	.panel {
		background-color: #222;
	}

	.item-list li:hover {
		background: #222;
	}

	.item-list .detail,
	.item-list .delete {
		border-bottom-color: #222;
	}

	.item-list .dir .icon::before,
	.item-list .dir .icon::after {
		border-color: #333;
		background-color: #963;
		background-image: linear-gradient(to bottom, #a74, #963);
	}

	.item-list .file .icon::before {
		border-color: #333;
		background-color: #bbb;
		background-image: linear-gradient(to bottom, #bbb, #aaa);
	}

	.item-list .file .icon::after {
		border-color: #333;
	}

	.item-list .size {
		color: #999;
	}

	.item-list .time {
		color: #666;
	}

	.item-list .delete {
		color: #f99;
	}

	.item-list .delete:hover {
		background-color: #433;
	}

	.item-list .header .detail {
		background-color: #181818;
	}
}

@media only screen and (max-width: 375px) {
	.item-list .header .time {
		width: 4.05em;
	}

	.item-list .detail .time span {
		display: none;
	}
}

@media only screen and (max-width: 350px) {
	.item-list .detail .time {
		display: none;
	}
}

@media print {
	:root .panel {
		display: none;
	}

	.tab {
		display: none;
	}

	.item-list li {
		page-break-inside: avoid;
		break-inside: avoid;
	}

	.item-list li.parent {
		display: none;
	}

	.item-list li .select {
		display: none;
	}

	.item-list li .detail {
		padding-left: 0;
	}
}
